package com.lanou3g.springcloud.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableZuulProxy
@EnableCircuitBreaker
@EnableFeignClients
public class ZuulApplication {

	// 或者直接在MyCalcFallbackProvider上添加@Component注解
	/*@Bean
	public MyCalcFallbackProvider myCalcFallbackProvider() {
		return new MyCalcFallbackProvider();
	}*/

	public static void main(String[] args) {
		SpringApplication.run(ZuulApplication.class, args);
	}
}
